<!DOCTYPE html>
<html lang="ch-cn"  xmlns:th="http://www.thymeleaf.org">
<head th:replace="layout::header">
</head>
<title>上号</title>
<body>
<div style="height: 50px;"></div>

<div class="paper container border row" style="margin-top: 20px; padding: 20px">
    <form autocomplete="off" th:action="@{/login/form}"  method="post" class="col-8 col" role="form"
          style="margin-left: auto;margin-right: auto">

        <div class="alert alert-danger" th:if="${param.error}"
             th:text="${session.SPRING_SECURITY_LAST_EXCEPTION.message}"></div>

        <h3 class="textAlign">登录</h3>
        <div class="paper border">
            <input type="text"  placeholder="用户名" class="form-control" name="username"
                   style="margin-left: auto;margin-right: auto"/>
        </div>
        <div class="paper border">
            <input type="password" placeholder="密码" class="form-control" name="password"
                   style="margin-left: auto;margin-right: auto"/>
        </div>

        <!--            <input type="hidden" name="_csrf" th:value="${_csrf.token}" />-->

        <div class="paper border">
            <button type="submit" class="btn border"
                    style="display:block; margin-left: auto;margin-right: auto">尝试上号</button>
        </div>
        <!-- <span th:utext="${successMessage}"></span> -->

    </form>


    <p class="col-12 col textAlign">
        蛤? 你没号?
        <a th:href="@{/register}" >lei一个!</a>
<!--        class="paper-btn"-->
    </p>

</div>
</body>
</html>